home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
amok_lha
/
amok20.lha
/
ComplexLib
/
txt
/
MathLibExt.def
< prev
next >
Wrap
Text File
|
1993-08-15
|
2KB
|
69 lines
(*********************************************************************
:Program. MathLibExt.def
:Author. Gary Struhlik
:Address. -
:Phone. -
:shortcut. [gs]
:Version. 1.0
:Date. 06.10.1988
:Copyright. PD
:Language. Modula-II
:Translator. M2Amiga
:Imports. -
:UpDate. -
:Contents. Zusätzliche mathematische Funktionen
:Remark. Für den Amiga Modula-2 Klub / Stuttgart
:Remark. Am 01.01.1989 mit M2Amiga 3.2d neu kompiliert
**********************************************************************)
DEFINITION MODULE MathLibExt; (* für Datentyp REAL *)
CONST
ln10 = 2.302585; (* 2.302585092994045 *)
pi = 3.141593; (* 3.141592653589793 *)
e = 2.718282; (* 2.718281828459045 *)
ln2 = 0.693147; (* 0.693147180559945 *)
PROCEDURE round ( x : REAL ) : LONGINT;
PROCEDURE sqr ( x : REAL ) : REAL;
PROCEDURE tan ( x : REAL ) : REAL;
PROCEDURE arcsin ( x : REAL ) : REAL;
PROCEDURE arccos ( x : REAL ) : REAL;
PROCEDURE sinh ( x : REAL ) : REAL;
PROCEDURE cosh ( x : REAL ) : REAL;
PROCEDURE tanh ( x : REAL ) : REAL;
PROCEDURE log ( x : REAL ) : REAL;
PROCEDURE PwrOfTen ( x : REAL ) : REAL;
PROCEDURE lb ( x : REAL ) : REAL;
PROCEDURE PwrOfTwo ( x : REAL ) : REAL;
PROCEDURE arsinh ( x : REAL ) : REAL;
PROCEDURE arcosh ( x : REAL ) : REAL;
PROCEDURE artanh ( x : REAL ) : REAL;
PROCEDURE power ( x,y : REAL ) : REAL; (* x^y *)
PROCEDURE fact ( x : REAL ) : REAL; (* Fakultät *)
PROCEDURE sgn ( x : REAL ) : REAL; (* Vorzeichen -1.0, 0.0 oder +1.0 *)
END MathLibExt.